package neteasy_tools

import (
	"encoding/json"
	"log"
	"net/http"
)

/*
* param cookies
* 		数据使用 json 的形式存储
 */
func StringCookies(strCookies string) (cookies []*http.Cookie) {
	if err := json.Unmarshal([]byte(strCookies), &cookies); err != nil {
		log.Printf("StringCookies Unmarshal error:%s\n", err.Error())
		return nil
	}
	return
}
